//JavaScript Validation for name and contact  number feild//
function validateUser(){
	var userName=document.getElementById("username").value;
	var userContact=document.getElementById("contact").value;


	if(userName==""){
		alert("Please enter User Name");
		document.getElementById("username").focus();
	}

	if(userContact==""){
		alert("Please enter Contact Number");
		document.getElementById("contact").focus();
		return false;
	}if (!(isNumeric(userContact) && userContact.length ==10 ))
    {
        alert("Mobile Number Should be in 10 digits only");
               return false;
    }
	document.registration.submit();

}

function isNumeric(n) {
	  return !isNaN(parseFloat(n)) && isFinite(n);
	}
